<?php
declare(strict_types=1);

namespace Zms\Guard;


/**
 * 快捷获取授权组件实例
 * @param string $guard
 * @return Guard
 * @throws \Zms\Exception\AppException
 * @throws \Zms\Exception\DataException
 */
function guard(string $guard): Guard
{
    return UserAuth::guard($guard);
}